#include "manager.h"
#include <QtSingleApplication>
#include "boot/e_boot.h"
#include "support/odbc_helper.h"

int main(int argc, char *argv[])
{
    SP_Single_Boot
            QString profile=P_FHS_ETC+"odbc.ini";
    if(!loadDefaultProfile(profile))
    {
        QMessageBox::critical(0,QStringLiteral("致命错误"),QStringLiteral("无法连接到ODBC数据源！"));
        return EXIT_FAILURE;
    }
    Manager w;
    a.setActivationWindow(&w);
    w.show();
    return a.exec();
}
